package com.ssy.lingxi.platform.manage.api.hystrix.paas;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.feign.paas.ShopPAASControllerFeign;
import com.ssy.lingxi.platform.manage.api.model.dto.shop.ShopPAASDTO;
import org.springframework.stereotype.Component;

@Component
public class ShopPAASControllerFeignFallback implements ShopPAASControllerFeign {

    @Override
    public Wrapper<?> add(ShopPAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> update(ShopPAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> stopAndStart(ShopPAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> delete(ShopPAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> findShopsBySiteId(Long siteId) {
        return Wrapper.failService("服务调用异常");
    }
}
